package org.example.myframework.frame.demo.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import lombok.Data;
import lombok.experimental.Accessors;
import org.example.myframework.frame.common.entity.BaseEntity;
//import org.example.myframework.frame.demo.domain.base.BaseEntity;

@Data
@Api(value = "测试mybatisPlus表", tags = {"测试mybatisPlus表"})
// 用于mybatisPlus表名映射
@TableName("test_table_plus")
@Accessors(chain = true)
public class TestTablePlus extends BaseEntity {
    // 序列化值
    private static final long serialVersionUID = 1L;

    private String info;

    // TODO 目前只是放在测试表中，后续可以移动到BaseEntity。乐观锁字段
    @TableField(fill = FieldFill.INSERT)
    private Integer version;
}
